	<div id="leftColumn">
	<div id="menu">
	
	<div class="item<?=in_array('manage_users', $active_menus)?' active':''?>">
		<a href="#" class="label">Manage Users</a>
		<div class="level2">
			<a href="<?php echo $base_url ;?>admin/manage_users/"><span>View list</span></a>
			<a href="<?php echo $base_url ;?>admin/users_downline/"><span>Downline</span></a>
			<a href="<?php echo $base_url ;?>admin/export_users/"><span>Export All</span></a>
			<a href="<?php echo $base_url ;?>admin/import_users/"><span>Import</span></a>
			<a href="<?php echo $base_url ;?>admin/send_email/"><span>Send E-mail</span></a>
			<a href="<?php echo $base_url ;?>admin/reports/"><span>Reports</span></a>
		</div>
	</div>
	<div class="item">
		<a href="<?php echo $base_url ;?>admin/cms" class="label">CMS</a>
	</div>
	<?php
			$a_id = $this->session->userdata('a_id');
			$admin = new Gmadmin();
			$admin->where('id',(int)$a_id)->get(1);
			$acl = $admin->exists() ? json_decode($admin->acl, true) : array();
	?>
	<?php
			if(@$acl['settings_edit']=='yes' OR @$acl['admin_create']=='yes' OR @$acl['admin_edit']=='yes' OR @$acl['admin_delete']=='yes')
			{
	?>
	<div class="item<?=in_array('settings', $active_menus)?' active':''?>">
		<a href="#" class="label">Settings</a>
		<div class="level2">
			<?php
				if(@$acl['settings_edit']=='yes')
				{
			?>
			<a href="<?php echo $base_url ;?>admin/settings/"><span>Edit settings</span></a>
			<?php
				}
			?>
			<?php
				if(@$acl['admin_create']=='yes' OR @$acl['admin_edit']=='yes' OR @$acl['admin_delete']=='yes')
				{
			?>
			<a href="<?php echo $base_url ;?>admin/manage_admins/"><span>Manage admins</span></a>
			<?php
				}
			?>
		</div>
	</div>
	<?php
			}
	?>
	<div class="item<?=in_array('affiliate', $active_menus)?' active':''?>">
		<a href="#" class="label">Affiliate</a>
		<div class="level2">
			<a href="<?php echo $base_url ;?>admin/manage_banners/"><span>View Banners</span></a>
			<a href="<?php echo $base_url ;?>admin/add_banner/"><span>Add Banner</span></a>
			<a href="<?php echo $base_url ;?>admin/embed_banner/"><span>Embed Banner</span></a>
			<a href="<?php echo $base_url ;?>admin/manage_text_links/"><span>View Text Links</span></a>
			<a href="<?php echo $base_url ;?>admin/add_text_link/"><span>Add Text Link</span></a>
			<a href="<?php echo $base_url ;?>admin/embed_text_link/"><span>Embed Text Link</span></a>
			<a href="<?php echo $base_url ;?>admin/ref_links/"><span>Set Sub-Aff URL</span></a>
		</div>
	</div>
	<div class="item">
		<a href="<?php echo $base_url ;?>admin/account_info/" class="label">Account Info</a>
	</div>
	<div class="item<?=in_array('system', $active_menus)?' active':''?>">
		<a href="#" class="label">System</a>
		<div class="level2">
			<a href="<?php echo $base_url ;?>admin/logs/"><span>View Logs</span></a>
		</div>
	</div>
	
	<!-- <div class="item">
		<a href="/help" class="label">Help</a>
	</div> -->
	<div class="item">
		<a href="<?=$base_url?>admin/logout" class="label" onclick="return confirm('Are you sure that you want to logout?');">Logout</a>
	</div>
	
	
	
	                    
						                </div>